<?php
namespace app\model;

use support\Model;

class CouponModel extends Model
{
    protected $table = 'coupons';
    
    protected $fillable = ['name', 'type', 'amount', 'min_amount', 'start_time', 'end_time', 'total', 'used', 'per_limit', 'use_type', 'product_ids', 'category_ids', 'code', 'status', 'created_at', 'updated_at'];
    
    protected $hidden = [''];
    
    protected $casts = array (
  'start_time' => 'datetime',
  'end_time' => 'datetime',
  'product_ids' => 'array',
  'category_ids' => 'array',
  'created_at' => 'datetime',
  'updated_at' => 'datetime',
);
} 